package main;

import java.net.Socket;

import command.accept.CommandAccept;
import data.processor.DataHandle;
import result.show.ResultShow;
import tcp.ServerCreate;

public class MainTest {

	public static void main(String[] args)throws Exception {
		ServerCreate sc=new ServerCreate(8888);
		Socket socket=sc.servercreat();
		CommandAccept commandAccept=new CommandAccept(socket);
		String[] s=commandAccept.commandAnalyser();
		DataHandle dh=new DataHandle(s);
		String result=dh.dataprocessor();
		ResultShow rs=new ResultShow(socket);
		rs.resultShow(result);
		commandAccept.out.close();
		commandAccept.reader.close();
		socket.close();
	}

}
